summaryrefslogtreecommitdiffstats
path: root/src/net/gcdc/asn1/datatypes/Asn1Optional.java
blob: 12865e3d6517c7508a4ea6b9262e047a76d7a6aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package net.gcdc.asn1.datatypes;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Indicates that the field is OPTIONAL in ASN.1. Implemented as null. Equivalent to @Nullable.
 *
 * Using Optional<T> would require Manifests to capture generics (like in Gson).
 *
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Asn1Optional {

}